<template>
  <div class="book-confirm">
    <div class="book-title">
      订货确认
    </div>
    <div class="book-info">
      <div class="info-inner">
        <span></span>提示：当前您有<em>（8）</em>个库存清单<b>待确认</b>，请尽快处理避免造成损失。
        <i>查看已确认历史</i>
      </div>
    </div>
    <div class="book-items">
      <div class="book-item"
           v-for="(item,index) in itemData"
           :key="index">
        111
      </div>
      <!-- //暂无页面 -->
      <div></div>
    </div>
  </div>
</template>

<script>
const itemData = [
  {
    time: 70000,
    status: '待确认',
    type: 13,
    quantity: 1200,
    items: [
      {
        name: '左后视眼睛壳',
        quantity: '4'
      },
      {
        name: '电池箱底部右护板',
        quantity: '2'
      },
      {
        name: '左后视眼睛壳',
        quantity: '1'
      }
    ]
  },
  {
    time: 8000,
    status: '待确认',
    type: 23,
    quantity: 2200,
    items: [
      {
        name: '左后视眼睛壳',
        quantity: '4'
      },
      {
        name: '电池箱底部右护板',
        quantity: '2'
      },
      {
        name: '左后视眼睛壳',
        quantity: '1'
      }
    ]
  },
  {
    time: 70000,
    status: '待确认',
    type: 13,
    quantity: 1200,
    items: [
      {
        name: '左后视眼睛壳',
        quantity: '4'
      },
      {
        name: '电池箱底部右护板',
        quantity: '2'
      },
      {
        name: '左后视眼睛壳',
        quantity: '1'
      }
    ]
  },
  {
    time: 70000,
    status: '待确认',
    type: 13,
    quantity: 1200,
    items: [
      {
        name: '左后视眼睛壳',
        quantity: '4'
      },
      {
        name: '电池箱底部右护板',
        quantity: '2'
      },
      {
        name: '左后视眼睛壳',
        quantity: '1'
      }
    ]
  },
  {
    time: 70000,
    status: '待确认',
    type: 13,
    quantity: 1200,
    items: [
      {
        name: '左后视眼睛壳',
        quantity: '4'
      },
      {
        name: '电池箱底部右护板',
        quantity: '2'
      },
      {
        name: '左后视眼睛壳',
        quantity: '1'
      }
    ]
  },
  {
    time: 70000,
    status: '待确认',
    type: 13,
    quantity: 1200,
    items: [
      {
        name: '左后视眼睛壳',
        quantity: '4'
      },
      {
        name: '电池箱底部右护板',
        quantity: '2'
      },
      {
        name: '左后视眼睛壳',
        quantity: '1'
      }
    ]
  },
  {
    time: 320000,
    status: '待确认',
    type: 13,
    quantity: 2022,
    items: [
      {
        name: '左后视眼睛壳',
        quantity: '4'
      },
      {
        name: '电池箱底部右护板',
        quantity: '2'
      },
      {
        name: '左后视眼睛壳',
        quantity: '1'
      }
    ]
  }
]

export default {
  data () {
    return {
      itemData
    }
  }
}
</script>

<style lang="less" scoped>
.book-confirm {
  .book-title {
    width: 100%;
    height: 54px;
    line-height: 54px;
    padding-left: 24px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
  }
  .book-info {
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    .info-inner {
      background: #fff9f0;
      border: 1px solid #ffe4c1;
      border-radius: 2px;
      font-size: 12px;
      font-family: PingFangSC, PingFangSC-Regular;
      color: @newColorGreyFontM;
      line-height: 17px;
      padding: 10px 24px 11px 24px;
      span {
        display: inline-block;
        width: 16px;
        height: 16px;
        background: url("../../../assets/image/sellerHub/tipsicon.png") center
          no-repeat;
        background-size: 16px 16px;
        vertical-align: middle;
        margin-right: 8px;
        margin-top: -2px;
      }
      em {
        color: @activeRed;
        font-style: normal;
        font-size: 14px;
      }
      b {
        color: #fe8406;
        font-weight: normal;
      }
      i {
        margin-left: 14px;
        text-decoration: underline;
        color: @activeRed;
        font-style: normal;
        cursor: pointer;
      }
    }
  }
  .book-items {
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 0 16px;
    overflow: hidden;
    .book-item {
      background: #ffffff;
      border-radius: 2px;
      box-shadow: 0px 0px 6px 0px rgba(39, 36, 36, 0.04);
      float: left;
      box-sizing: border-box;
      width: 410px;
      margin-right: 24px;
      margin-bottom: 16px;
      &:nth-child(4n) {
        margin-right: 0;
      }
    }
  }
}
</style>